﻿<html>
<script language="javascript">
var logdate,logname,logmode,logkind;
    function query(){
        logdate =document.form.logdate.value; 
        logname = document.form.logname.value;
        logmode = document.form.logmode.value;
        logkind =document.form.logkind.value;
        url = "/mon?logdate="+logdate+"&logname="+logname+"&logmode="+logmode+"&logkind="+logkind;
        window.location.href = url;
    }
    
</script>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ACIDE流程调试</title>
</head>

<body style="text-align: center">

<form method="post" name="form" action="sub" target="_blank">
	<p>ACIDE流程调试(发送环境:<select size="1" name="sendhost" id="fshost" tabindex="2">
        {%for row in hj_list%}
			<option value="{{row.get('ip')}}"   {{ 'selected' if sendhost == "{{row.get('ip')}}" else '' }}>{{row.get('hostname')}}</option>
        {%endfor%}
			</select>)</p>                                                        
	<table align="center" id="table1">
    <label class="radio"><input type="radio" name="jylx" value="1" checked="checked" >模拟报文</label>
    <label class="radio"><input type="radio" name="jylx" value="2">流程调试</label>
    <label class="radio"><input type="radio" name="jylx" value="3">流程组件调试</label>
		<tr>
			<td width="82" align="right"><font size="2">指定子系统：</font></td>
            <td>
            <textarea name="zxt" id="textarea" cols="45" rows="1">{{zxt}}</textarea>
            </td>
		</tr>
        <tr>
        	<td width="82" align="right"><font size="2">指定流程名：</font></td>
            <td>
            <textarea name="lcm" id="textarea" cols="45" rows="1">{{lcm}}</textarea>
            </td>
        </tr>
        <tr>
        	<td width="82" align="right"><font size="2">指定流程序号：</font></td>
            <td>
            <textarea name="lcxh" id="textarea" cols="45" rows="1">{{lcxh}}</textarea>
            </td>
        </tr>
        <tr>
        	<td width="82" align="right"><font size="2">跟踪xml节点：</font></td>
            <td>
            <textarea name="gzjd" id="textarea" cols="45" rows="10">{{gzjd}}</textarea>
            </td>
        </tr>
        <tr style="display:none">
            <td>
                <font size="2">内容-HEX方式（发往GAPS）</font><p>
                <textarea id="textarea" name="bw_hex"  cols="82" rows="11">{{bw_hex}}</textarea>
            <td>
        </tr>
	</table>
    <p><p><p>

	<p>
    <button type="submit" class="submit_button" name="action" value="SENDGAPS" >发送GAPS主机（S）</button>
    <!--input  onClick="query()" type="button"  value="提交" name="B1"-->&nbsp;
    <button type="submit" class="submit_button" name="action" value="RMALC" >刷新流程（RMA）</button>
    <!--input  onClick="query()" type="button"  value="提交" name="B1"-->&nbsp;
    <button type="submit" class="submit_button" name="action" value="RMAYY" >刷新应用（RMA）</button>&nbsp;
    <button type="submit" class="submit_button" name="action" value="RMAALL">刷新所有（RMA）</button>
    <!--input  onClick="query()" type="button"  value="提交" name="B1"-->&nbsp;
	<!--input type="reset" value="重置" name="B2"></p-->
	<p>　</p>
	</table>
</form>
<form method="post" name="form1" action="sub" >
    <font size="2">XML报文</font>
    <table align="center" id="table2">
        <tr>
			<td>
                <font size="2">内容-HEX方式（发往GAPS）</font><p>
                <textarea id="textarea" name="bw_hex"  cols="82" rows="11">{{bw_hex}}</textarea>
            <td>
			<td>
                <button type="submit" class="submit_button" name="action" value="assii2hex" ><==</button>
                <p></p>
                <button type="submit" class="submit_button" name="action" value="hex2assii" >==></button>
                <p></p>&nbsp;<font size="2">XML</font>
            <td>
			<td>
                <font size="2">内容-ASCII方式（显示）</font><p>
                <textarea id="textarea" name="bw_ascii"  cols="82" rows="11">{{bw_ascii}}</textarea>
            <td>
		</tr>
	</table>
</form>
    
	<p>　</p>
	<p style="text-align: middle">版权所有(C) 2012-2017 平欣电子科技有限公司
	<a href="http://www.levelappro.com/">www.levelappro.com&nbsp;</a></p>
            <!--form action="" method="post" id="main_form">
                <input type="text" name="username" class="username" placeholder="请输入您的用户名！" />
                <input type="password" name="password" class="password" placeholder="请输入您的用户密码！" />
                <input type="Captcha" class="Captcha" name="Captcha" placeholder="请输入验证码！" />
				<a href="#" id="get_code_img"><img src="get_code" class="getcode" /></a>
                <button type="submit" class="submit_button">登录</button>
                <div class="error"><span>+</span></div>
            </form-->
		

</body>

</html>
